package com.duoduo.common.api.myinterface.mq;

import java.io.Serializable;

public interface ExceptionHandler {
	
	public boolean support(Throwable t);

	public <T extends Serializable> void handle(Throwable t, T bean, Class<T> clazz);
	
	default public <T extends Serializable> void handle(Throwable t, String messageStr, Class<T> clazz) {
		
	}
	
}